<?php
include("include/config.inc.php");

if(!isset($_SESSION['s_activId']))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
else
{
  echo $query1 = "DELETE FROM outgoing 
               WHERE outgoingId = ".$_GET['outgoingId'];
  $result1=mysql_query($query1);
  if(!$result1)
    echo "DELETING FAILED";
  else
    header("Location:outGoingEntry.php");
}
?>